﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IGGCore;

namespace IGGConsole
{
    public class ModeTeamsFormatter : IModeFormatter
    {
        #region IModeFormatter Members

        /// <summary>
        /// Format the history tidbit
        /// </summary>
        public void FormatMode(Scoreboard board)
        {
            Console.WriteLine();
            Console.WriteLine(" LAA) Los Angeles Angels");
            Console.WriteLine(" ARI) Arizona Diamondbacks");
            Console.WriteLine(" ATL) Atlanta Braves");
            Console.WriteLine(" BAL) Baltimore Orioles");
            Console.WriteLine(" BOS) Boston Red Sox");
            Console.WriteLine(" CHC) Chicago Cubs");
            Console.WriteLine(" CHW) Chicago White Sox");
            Console.WriteLine(" CIN) Cincinnati Reds");
            Console.WriteLine(" CLE) Cleveland Indians");
            Console.WriteLine(" COL) Colorado Rockies");
            Console.WriteLine(" DET) Detroit Tigers");
            Console.WriteLine(" HOU) Houston Astros");
            Console.WriteLine(" KC)  Kansas City Royals");
            Console.WriteLine(" LAD) Los Angeles Dodgers");
            Console.WriteLine(" MIL) Milwaukee Brewers");
            Console.WriteLine(" MIA) Miami Marlins");
            Console.WriteLine(" MIN) Minnesota Twins");
            Console.WriteLine(" NYM) New York Mets");
            Console.WriteLine(" NYY) New York Yankees");
            Console.WriteLine(" OAK) Oakland Athletics");
            Console.WriteLine(" PHI) Philadelphia Phillies");
            Console.WriteLine(" PIT) Pittsburgh Pirates");
            Console.WriteLine(" SD)  San Diego Padres");
            Console.WriteLine(" SF)  San Francisco Giants");
            Console.WriteLine(" SEA) Seattle Mariners");
            Console.WriteLine(" STL) St. Louis Cardinals");
            Console.WriteLine(" TB)  Tampa Bay Rays");
            Console.WriteLine(" TEX) Texas Rangers");
            Console.WriteLine(" TOR) Toronto Blue Jays");
            Console.WriteLine(" WAS) Washington Nationals");
            Console.WriteLine("");
            Console.Write(" TEAM: ");

            string userchoice = Console.ReadLine().ToUpper();
            Console.WriteLine();
            Console.Write(" Loading. Please wait.");
            Team team = new Team();
            team.Code = userchoice;
            board.ActiveTeam = team;
        }

        #endregion
    }
}
